package PTA_5;

import java.util.Scanner;

public class t4 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int begin = scan.nextInt();
        int end = scan.nextInt();
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < n; i++) {
            stringBuffer.append(i);
        }
        String s = stringBuffer.substring(begin,end);
        System.out.println(s);
    }
}
